<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>一行多列</title>
    <style>
  body {
    margin: 0;
  }
  .box {
    width: 100%;
    background-color: khaki;
    padding: 10px;
    box-sizing: border-box;
  }
  .box .left {
    width: 150px;
    height: 200px;
    background-color: skyblue;
    float: left;
  }
  .box .middle {
    background-color: aquamarine;
    height: 200px;
    margin: 0px 160px;
  }
  .box .right {
    width: 150px;
    height: 200px;
    background-color: pink;
    float: right;
  }
  /*清除浮动*/
  .clearfix::after {
    display: block;
    content: "";
    clear: both;
  }
</style>
<body>
  <div class="box clearfix">
    <div class="left">左</div>
    <div class="right">右</div>
    <div class="middle">中</div>
  </div>
</body>
</html>
